package com.ks.order.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ks.order.dao.OrderMapper;
import com.ks.order.entity.Order;
import com.ks.order.model.request.ReqCreateorderDto;
import com.ks.order.service.IOrderService;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements IOrderService {

    @Override
    public void createOrder(ReqCreateorderDto request) {
        Order order = new Order();
        order.setAmount(request.getAmount());
        save(order);
    }
}
